package com.shd.edanpei.util;

import android.content.Intent;
import android.net.Uri;

import com.shd.edanpei.base.MyApplication;

/**
 * desc  : 意图相关工具类
 */
public final class IntentUtils {

    private IntentUtils() {
    }

    /**
     * 获取应用详情页面intent
     */
    public static Intent getAppDetailSettingIntent() {
        Intent localIntent = new Intent();
        localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        localIntent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
        localIntent.setData(Uri.fromParts("package", MyApplication.getApplication().getPackageName(), null));
        return localIntent;
    }


}
